import java.util.Arrays;

public class Text {
    public static void main(String[] args) {
        int[] array = {4,76,23,57,21,68};
        PriorityQueue priorityQueue =new PriorityQueue();
        priorityQueue.createHeap(array);
        System.out.println(Arrays.toString(priorityQueue.elem));
        priorityQueue.push(88);
        priorityQueue.pollHeap();
        priorityQueue.push(99);
        System.out.println(Arrays.toString(priorityQueue.elem));

    }
}
